<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>成员列表</title>
    <meta content="webkit" name="renderer">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"
          name="viewport"/>
    <link href="../layui/css/layui.css" rel="stylesheet">
    <script src="../layui/layui.js" type="text/javascript"></script>
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    <script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
    <link href="../ladmin/lib/layui/css/modules/layer/default/layer.css" rel="stylesheet" type="text/css">
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<table class="layui-hide" id="followTable" lay-filter="followTable" style="width: 100%"></table>




<script type="text/javascript">

    layui.use('table', function () {


        var table = layui.table;
        table.render({
            elem: "#followTable",
            skin: 'line',
            url: 'getBorrowList',
            toolbar: '#toolbar',
            method:'Post',
            cols: [
                [
                    {field: "tid", title: "物资编号", align: 'center'},
                    {field: "itemName", title: "物资名称", align: 'center',edit:"text"},
                    {field: "amount", title: "总数", align: 'center',edit:"text"},
                    {field: "memberName", title: "借用人", align: 'center'},
                    {field: "startDate", title: "借用时间", align: 'center'},
                    {field: "endDate", title: "归还时间", align: 'center'},
                ]
            ],

            done: function (res, curr, count) {
                table = res.data;
            },
            page: { //支持传入 laypage 组件的所有参数（某些参数除外，如：jump/elem） - 详见文档
                layout: ['prev', 'page', 'next', 'skip'] //自定义分页布局
                , groups: 3 //只显示 1 个连续页码
                , first: true //不显示首页
                , last: true//不显示尾页

            }

        });




    })


</script>
</body>
</html>